package com.example.healthmanagement.dao;

import com.example.healthmanagement.entity.ChildDietaryRecords;
import com.example.healthmanagement.entity.ChildSportRecords;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SportRecordsRepository extends JpaRepository<ChildSportRecords,Long> {

    List<ChildSportRecords> findAllByChildInformation_ChildID(Integer childID);

    List<ChildSportRecords> findAllByChildInformation_ChildIDAndCreateTimeContaining(Integer childID, String today);
}
